package com.qboot.rabbitmq.work;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 任务模型 Work - 配置
 *
 * @author Tellsea
 * @date 2023/3/7
 */
@Configuration
public class RabbitMqWorkConfig {

    @Bean("workQueue")
    public Queue workQueue() {
        return new Queue(WorkConst.QUEUE_NAME);
    }
}
